package com.zyl.Ecs.auth.config;

import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import com.zyl.Ecs.common.constant.ConfigConstant;
import com.zyl.Ecs.common.handler.MyBatisPlusFillingHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version v1.0
 * @ProjectName: Ecs
 * @Package: com.zyl.Ecs.auth.config
 * @ClassName: MyBatisPlusConfig
 * @Description TODO
 * @Author 翟玉龙
 * @Date 2024/12/4-15:54
 */
@Configuration
@MapperScan(ConfigConstant.MYBATIS_MAPPER_PACKAGE)
public class MyBatisPlusConfig {

    /**
     * 将MyBatisPlus中的实体属性处理器注册到Bean容器中
     *
     * @return {@link MetaObjectHandler }
     */
    @Bean
    public MetaObjectHandler metaObjectHandler() {
        return new MyBatisPlusFillingHandler();
    }

}